package utiles
{
	import flash.display.Sprite;
	import flash.display.Stage;
	import flash.sensors.Accelerometer;

	public class StageProxy
	{
		private static var _stage:Stage = null;
		private static var _startHeight:Number = 0;
		private static var _startWidth:Number = 0;
		private static var _rootContainer:Sprite = null;
		
		public static function registerStage(stg:Stage):void
		{
			_stage = stg;
			
			_startHeight = stg.stageHeight;
			_startWidth = stg.stageWidth;
		}
		
		public static function registerRootContainer(root:Sprite):void
		{
			_rootContainer = root;
		}
		
		public static function get root():Sprite
		{
			return _rootContainer;
		}
		
		public static function get stage():Stage
		{
			return _stage;
		}
		
		public static function get startWidth():Number
		{
			return _startWidth;
		}
		
		public static function get startHeight():Number
		{
			return _startHeight;
		}
		
		public static function get width():Number
		{
			return 1000;
		}
		
		public static function get height():Number
		{
			return 600;
		}
		
		public static function stageWidth():Number
		{
			return _stage.stageWidth;
		}
		
		public static function stageHeight():Number
		{
			return _stage.stageHeight;
		}
	}
}